package org.example.casemodule.vo;

import lombok.Data;
import org.example.casemodule.enums.CertificateAuditStatus;

import java.util.Date;
import java.util.List;

@Data
public class CertificatesVO {
    /**
     *  "certificates": [
     *       {
     *         "certId": "CERT001",
     *         "certName": "律师执业证",
     *         "certType": "PRACTICE_CERTIFICATE",
     *         "issuer": "北京市司法局",
     *         "issueDate": "2020-05-10",
     *         "expireDate": "2026-05-10",
     *         "fileUrl": "https://oss.com/certs/001.jpg",
     *         "status": "APPROVED"
     *       },
     *       {
     *         "certId": "CERT002",
     *         "certName": "劳动法专业认证",
     *         "certType": "SPECIALTY_CERTIFICATE",
     *         "issuer": "中国法学会",
     *         "issueDate": "2023-02-15",
     *         "expireDate": "2028-02-15",
     *         "fileUrl": "https://oss.com/certs/002.jpg",
     *         "status": "PENDING_REVIEW"
     *       }
     *     ]
     */
    List<CertificatesInfo> certificates;

    @Data
    public static class CertificatesInfo {
        private Long certId;
        private String certName;
        private String issuer;
        private Date issueDate;
        private Date expireDate;
        private String fileUrl;
        private CertificateAuditStatus status;
    }
}
